#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include "ui_mainwindow.h"

#include <boost/smart_ptr/scoped_ptr.hpp>
#include "volumereader.h"
#include "qmap.h"
#include "qstring.h"
#include "TimeLine.h"

class MainWindow : public QMainWindow
{
	Q_OBJECT

public:
	MainWindow(QWidget *parent = 0);
	~MainWindow();
	void setupConnections();
	void enableControls( bool enable );
private slots:
	void OpenImage(QString imagePath="");
	void refillTreeWidget();
	void ExportFile();
	/*calc collision and output to report.csv*/
	void calcCollision();
	void ExportLog();
	void refillTimeLine();

	//x void TimeBasedInference( QTreeWidgetItem *nxt, CMFT* cur );
private:
	TimeLine timeLine;
	Ui::MainWindow ui;
	boost::scoped_ptr<VolumeReader> vr;
	QMap<UINT64,CMFT> mftMap;
	SYSTEMTIME startTime;
	SYSTEMTIME endTime;
};

#endif // MAINWINDOW_H
